package com.tvein.sanguo.controller.Game.user
{
	//flash
	//pureMVC
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.utilities.fabrication.patterns.command.SimpleFabricationCommand;
	//custom
	import com.tvein.sanguo.common.CommonConstants;
	import com.tvein.sanguo.model.SFSProxy;
//
	public class GameMessage extends SimpleFabricationCommand implements ICommand
	{
		private var sfsData:SFSProxy;
		
		override public function execute(notification:INotification) : void
		{
			//检查命令格式
			
			routeNotification(CommonConstants.MODULE_INVOKE, ["-msg", [notification.getBody()[1][0].getVariable("roleName").getStringValue(), notification.getBody()[1][1], notification.getBody()[1][2]]], null, CommonConstants.MODULE_CHAT + "/*");
		}
		
		//Custom
	}
}